package com.ynny.chapter14train.service;

import com.ynny.chapter14train.mapper.UsersMapper;
import com.ynny.chapter14train.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements UsersService{
    @Autowired
    private UsersMapper usersmapper;
    @Override
    public List<Users> selectAll(Users users) {

        return usersmapper.selectUsers(users);
    }
    public List<Users> insert(Users users) {
        return usersmapper.insertUsers(users);
    }

    @Override
    public int register(Users users) {
        return 0;
    }

    @Override
    public boolean login(String username, Integer password) {
        return false;
    }
}
